import apiUrl from '../base'
import axios from '@/libs/axios'
const disPathch = {
  getList() {
    return axios.get(`${apiUrl.risk}v1/DispatchPost/listForPersonUserOrgId`, '')
  },
  //详情
  detail(data) {
    return axios.request({
      url: `${apiUrl.risk}v1/DispatchPost/detailsById/` + data,
      method: 'get'
    })
  },
  //删除
  delete(data) {
    return axios.request({
      url: `${apiUrl.risk}v1/DispatchPost/delete/` + data,
      method: 'delete'
    })
  },
  add(id) {
    return axios.post(
      `${apiUrl.risk}v1/DispatchPost/addForPersonUserOrgId/${id}`,
      ''
    )
  }
}
export default disPathch
